home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / TreeView / NamedTree.h < prev    next >
Encoding:
Text File  |  1995-12-11  |  1.2 KB  |  38 lines

  1. //
  2. //    NamedTree.h -- a generic class to build tree data structures
  3. //        Written by Don Yacktman (c) 1993 by Don Yacktman.
  4. //                All rights reserved.
  5. //
  6. //    This Tree subclass allows an entire tree to be given a name, other than
  7. //        the root node's name.
  8. //
  9. //        You may use and copy this class freely as long as you
  10. //        comply with the following terms:
  11. //            (1) If you use this class in an application which you
  12. //                intend to sell commercially, as shareware, or otherwise,
  13. //                you may only do so with express written permission
  14. //                of the author.  Use in applications which will
  15. //                be distributed free of charge is encouraged.
  16. //            (2) You must include the source code to this object and
  17. //                all accompanying documentation with your application,
  18. //                or provide it to users if requested, free of charge.
  19. //            (3) Do not remove the author's name or any of the
  20. //                copyright notices
  21. //
  22.  
  23. #import <misckit/MiscTree.h>     // superclass is in there
  24.  
  25. @interface NamedTree:MiscTree
  26. {
  27.     id treeName;    // a String object that all nodes should point to
  28. }
  29.  
  30. // set and retrieve the tree's name
  31. - setTreeName:string;
  32. - (const char *)treeName;
  33.  
  34. - act:sender;            // action performed when node is activated
  35. - activateNode:sender;     // message sent to "activate" the node
  36.  
  37. @end
  38.